package com.banciyuan.bcywebview.biz.goods.address;


import android.content.Context;

import com.banciyuan.bcywebview.utils.sp.SPConstant;
import com.banciyuan.bcywebview.utils.sp.SPHelper;

public class ReceiverAddressHelper {
    public static String getReceiverName(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_NAME, "");
    }

    public static String getReceiverPhone(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_PHONE, "");
    }

    public static String getReceiverAddress(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_ADDDRESS, "");
    }

    public static String getReceiverDetailAddress(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_DETAILADDRESS, "");
    }

    public static String getReceiverProvinceCode(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_PROVINCECODE, "");
    }

    public static String getReceiverCityCode(Context context, String uid) {
        return SPHelper.getString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_CITYCODE, "");
    }

    public static void putReceiverName(Context context, String uid, String name) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_NAME, name);
    }

    public static void putReceiverPhone(Context context, String uid, String phone) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_PHONE, phone);
    }

    public static void putReceiverAddress(Context context, String uid, String address) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_ADDDRESS, address);
    }

    public static void putReceiverDetailAddress(Context context, String uid, String detailAddress) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_DETAILADDRESS, detailAddress);
    }

    public static void putReceiverProvinceCode(Context context, String uid, String provinceCode) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_PROVINCECODE, provinceCode);
    }

    public static void putReceiverCityCode(Context context, String uid, String cityCode) {
        SPHelper.putString(context, SPConstant.SPNAME_RECEIVERINFO + uid, SPConstant.RECEIVER_CITYCODE, cityCode);
    }
}
